using System;
using System.Collections.Generic;
using System.Text;
using System.Data.SqlClient;

namespace FitnessClub.Dal
{
    class SQLDao
    {
        public SqlDataReader read(string sql)
        {
            SqlConnection conn = new SqlConnection("Data Source=SQL2005.hostedwindows.pl; Initial Catalog=baza_danych_fitness; User ID=zly_roman; Password=minister;");
            conn.Open();
             SqlCommand cmd = new SqlCommand(sql,conn);
             SqlDataReader reader = cmd.ExecuteReader();
             conn.Close();
             return reader;
                
        }
    }
}
